package com.ricky.order.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ricky.hosp.model.order.OrderInfo;
import com.ricky.hosp.model.order.PaymentInfo;

import java.util.Map;

public interface PaymentService extends IService<PaymentInfo> {
    void savePaymentInfo(OrderInfo order, Integer status);
    // 支付成功，更新订单状态
    void paySuccess(String outTradeNo, Map<String, String> resultMap);
    // 获取支付记录
    PaymentInfo getPaymentInfo(Long orderId, Integer paymentType);
}
